package com.hy.hongying.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@TableName("t_coins")
public class Coins {
    @TableId(type = IdType.AUTO)
    private Integer id ;
    /** 作品id */
    private Integer oid ;
    /** 投币数量 */
    private Integer count ;
    /** 投币人 */
    private Integer uid ;

    public Coins(Integer oid, Integer count, Integer uid) {
        this.oid = oid;
        this.count = count;
        this.uid = uid;
    }
}
